package com.newtouch.dao.base;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.newtouch.common.Page;

public abstract interface BaseDao<T, PK extends Serializable>  {
	public abstract void insertModelObject(T entity);   
	public abstract int updateModelObject(T entity);   
	public abstract int deleteModelObject(PK primaryKey);  
	public abstract int deleteModelObjectAll();  
	public abstract T getModelObject(PK primaryKey); 
	public abstract List<T> selectModelObjectList(Map<String,String> paraMap);  
	public abstract List<T> selectModelObjectListInterface(Map<String,String> paraMap);  
	public abstract List<T> selectModelObjectListPage(Page page);  
	public abstract List<T> findAllModelObjectList();
	public abstract List<T> selectModelObjectListWithSQLID(String sqlId,Map<String, String> paraMap);
}
